#include <iostream>
using namespace std;

class Complex 
{
    private:
        int a, b;
    public:
        void set_data(int x, int y)
        {
            a = x;
            b = y;
        }

        void get_data()
        {
            cout << a << " " << b << endl;
        }

        Complex add(Complex c)
        {
            Complex temp;
            temp.set_data(a + c.a, b + c.b);
            return temp;
        }
};

int main() 
{
    Complex c1, c2, c3;
    c1.set_data(5, 7);
    // c1.get_data();
    c2.set_data(3, 2);
    c3 = c1.add(c2);
    c3.get_data();
}